package Demo1_myBatisFirstExample.vo;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;

//@Alias("user1")
public class User implements Serializable {

    private int id;
    private String username;
    private int userAge;

    public User(int id, String username, int userAge) {
        this.id = id;
        this.username = username;
        this.userAge = userAge;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", userAge=" + userAge +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getUserAge() {
        return userAge;
    }

    public void setUserAge(int userAge) {
        this.userAge = userAge;
    }
}
